import { GraphQLSchema, GraphQLObjectType } from 'graphql'

import { infos, createInfo, updateInfo } from './info'

export default new GraphQLSchema({
  query: new GraphQLObjectType({
    name: 'Queries',
    fields: {
      infos
    }
  }),
  mutation: new GraphQLObjectType({
    name: 'Mutations',
    fields: {
      createInfo,
      updateInfo
    }
  })
})
